// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from '../node_modules/element-ui'
import '../node_modules/element-ui/lib/theme-chalk/index.css'
import '../vue.config.js'
import Qs from 'qs'

//1、导入axios
import axios from "../node_modules/axios";

Vue.config.productionTip = false
Vue.use(ElementUI)

Vue.prototype.$axios = axios
//axios.defaults.baseURL = '/api'        //关键代码
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>'
})
